package com.four.dailymanage.office.controller;

import com.four.dailymanage.common.bean.ResponseData;
import com.four.dailymanage.common.controller.BaseController;
import com.four.dailymanage.office.service.OfficeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/officeType")
public class OfficeTypeController extends BaseController {
    @Autowired
    OfficeTypeService officeTypeService;
    @GetMapping("/getsA")
    public ResponseData<Object> getOfficeType(){
        return returnObject(officeTypeService.getList());
    }
}
